from flask import Flask, Blueprint

from applications.view.front.list import bp as list_bp
from applications.view.front.blog import bp as blog_bp

# 创建blog
front_bp = Blueprint('front', __name__, url_prefix='/front')


def register_front_bps(app: Flask):
    # 在blog_bp下注册子蓝图
    front_bp.register_blueprint(blog_bp)
    front_bp.register_blueprint(list_bp)
    app.register_blueprint(front_bp)
